/* 整体页面容器 */
.register-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: url('../../../public/Image/login_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 顶部图标 */
.register-top-icon {
  margin-top: 60px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 白色注册卡片 */
.register-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
  box-sizing: border-box;
}

/* 输入框组（带按钮） */
.input-group-with-button {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  gap: 12px;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  position: relative;
  min-height: 44px;
}

.input-group.last-input {
  border-bottom: none;
  margin-bottom: 0;
}

.input-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.input-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.verify-icon {
  width: 20px;
  height: 20px;
  background: #1890ff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.input-wrapper {
  flex: 1;
}

.register-input {
  border: none !important;
  background: transparent !important;
  font-size: 16px;
  padding: 8px 0 !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
}

.register-input::placeholder {
  color: #999;
  font-size: 16px;
}

.verify-button-wrapper {
  width: 120px;
  flex-shrink: 0;
}

.verify-button {
  height: 36px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  padding: 0 16px !important;
  min-width: 100px;
  -webkit-tap-highlight-color: transparent;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.password-toggle:active {
  background-color: rgba(0, 0, 0, 0.05);
}

.optional-text {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  flex-shrink: 0;
}

/* 注册按钮容器 */
.register-button-container {
  width: 100%;
  max-width: 320px;
  margin-top: 20px;
  box-sizing: border-box;
}

.register-button {
  height: 48px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  background: #1890ff !important;
  border: none !important;
  color: white !important;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.register-button:active {
  transform: scale(0.98);
  background: #1677ff !important;
}

/* 移动端适配媒体查询 */

/* 小屏幕手机 */
@media (max-width: 375px) {
  .register-page {
    padding: 0 12px;
  }

  .register-top-icon {
    margin-top: 40px;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .register-card {
    padding: 20px 16px;
    margin-bottom: 24px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .verify-button {
    height: 32px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    min-width: 90px;
  }

  .register-button {
    height: 44px !important;
    font-size: 15px !important;
  }

  .register-button-container {
    margin-top: 16px;
  }
}

/* 超小屏幕 */
@media (max-width: 320px) {
  .register-page {
    padding: 0 8px;
  }

  .register-top-icon {
    margin-top: 30px;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .register-card {
    padding: 16px 12px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .input-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  .register-input {
    font-size: 15px;
  }

  .register-input::placeholder {
    font-size: 15px;
  }

  .verify-button {
    height: 30px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    min-width: 80px;
  }

  .password-toggle {
    width: 28px;
    height: 28px;
  }

  .register-button {
    height: 42px !important;
    font-size: 14px !important;
  }

  .optional-text {
    font-size: 12px;
  }
}

/* 横屏模式 */
@media (orientation: landscape) and (max-height: 500px) {
  .register-page {
    padding: 10px 20px;
  }

  .register-top-icon {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .register-card {
    margin-bottom: 15px;
    padding: 20px 16px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .register-button-container {
    margin-top: 10px;
  }

  .register-button {
    height: 42px !important;
  }
}

/* 大屏幕手机 */
@media (min-width: 414px) and (max-width: 768px) {
  .register-card {
    max-width: 360px;
    padding: 28px 24px;
  }

  .verify-button {
    height: 40px !important;
    font-size: 15px !important;
    padding: 0 18px !important;
  }

  .register-button {
    height: 52px !important;
    font-size: 17px !important;
  }
}

/* 平板 */
@media (min-width: 768px) {
  .register-page {
    padding: 0 24px;
  }

  .register-top-icon {
    margin-top: 80px;
  }

  .icon-circle {
    width: 100px;
    height: 100px;
  }

  .register-card {
    max-width: 400px;
    padding: 32px 28px;
    margin-bottom: 40px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .register-input {
    font-size: 18px;
  }

  .register-input::placeholder {
    font-size: 18px;
  }

  .verify-button {
    height: 44px !important;
    font-size: 16px !important;
    padding: 0 20px !important;
  }

  .register-button {
    height: 56px !important;
    font-size: 18px !important;
  }

  .register-button-container {
    margin-top: 30px;
  }

  .password-toggle {
    width: 36px;
    height: 36px;
  }

  .optional-text {
    font-size: 16px;
  }
}

.optional-text {
  width: 40px;
}